package org.example.backend.Module.System.Role.Pojo.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Role {

    @ApiModelProperty("角色ID")
    @TableId(type = IdType.NONE)
    private Long id;

    @ApiModelProperty("角色名")
    private String name;

    @ApiModelProperty("权限列表")
    private List<String> privileges;
}
